import request from '@/utils/request'

// 查询资产出库列表
export function listAssetChuku(query) {
  return request({
    url: '/sales/AssetChuku/list',
    method: 'get',
    params: query
  })
}

// 查询资产出库详细
export function getAssetChuku(id) {
  return request({
    url: '/sales/AssetChuku/' + id,
    method: 'get'
  })
}

// 新增资产出库
export function addAssetChuku(data) {
  return request({
    url: '/sales/AssetChuku',
    method: 'post',
    data: data
  })
}

// 修改资产出库
export function updateAssetChuku(data) {
  return request({
    url: '/sales/AssetChuku',
    method: 'put',
    data: data
  })
}

// 删除资产出库
export function delAssetChuku(id) {
  return request({
    url: '/sales/AssetChuku/' + id,
    method: 'delete'
  })
}

// 出库审核
export function cksh(data) {
  return request({
    url: '/sales/AssetChuku/sh',
    method: 'post',
    data: data
  })
}

//取消出库审核
export function ckshqx(data) {
  return request({
    url: '/sales/AssetChuku/qxsh',
    method: 'post',
    data: data
  })
}

export function cjzc(data) {
  return request({
    url: '/sales/AssetChuku/cjzc',
    method: 'post',
    data: data
  })
}
